<!-- 倒计时 -->
<?php
header("Content-type: text/html; charset=utf-8");
	date_default_timezone_get("Asia/ShangHai");
	$a=strtotime("now");
	$b=strtotime("20160615");
	echo "当前时间为：".date("Y-m-d H:i:s",$a)."<br>";
	echo "毕业时间为：".date("Y-m-d H:i:s",$b)."<br>";
	$daystamp = $b - $a;
	$days = $daystamp/(60*60*24);
	$hours = ($daystamp-(60*60*24*floor($days)))/(60*60);
	$middle = ($daystamp-(60*60*24*floor($days))-(floor($hours)*60*60))/(60);
	$second = ($daystamp-(60*60*24*floor($days))-(floor($hours)*60*60)-(floor($middle)*60));
	echo "距毕业还剩：".floor($days)."天".floor($hours)."小时".floor($middle)."分钟".ceil($second)."秒";
	// echo $b;
?>

<!-- 生日提醒功能 -->
